from django.conf.urls.defaults import *

# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
    # Example:
    # (r'^orange/', include('orange.foo.urls')),

    # Uncomment the admin/doc line below and add 'django.contrib.admindocs' 
    # to INSTALLED_APPS to enable admin documentation:
    (r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
    (r'^admin/', include(admin.site.urls)),
    (r'^facebook/', include('django_facebook.urls')),
    (r'^api/lookup/(.+)/(.+)/?$', 'planner.views.assignment_lookup'),
    (r'^api/course_autocomplete/?$', 'planner.views.course_autocomplete'),
    (r'^api/add_class/?$', 'planner.views.add_class'),
    (r'^api/remove_class/?$', 'planner.views.remove_class'),
    (r'^api/new_post/?$', 'planner.views.new_post'),
    (r'^(.+)/(.+)/?$', 'planner.views.assignment'),
    (r'^(.+)/?$', 'planner.views.course'),
    (r'^/?$', 'planner.views.main'),
)

from django.contrib.staticfiles.urls import staticfiles_urlpatterns

# ... the rest of your URLconf here ...

urlpatterns += staticfiles_urlpatterns()

